<script setup>

</script>

<template>
  <!-- 子页面可视窗口 -->
  <div class="view-window">
    <router-view />
  </div>
  <!-- 底部导航栏 -->
  <div class="bottom-nav">
    <router-link to="/" class="nav-item">
      <i-ep-HomeFilled class="iconfont" />
      <span>首页</span>
    </router-link>
    <router-link to="/moviePage" class="nav-item">
      <i-ep-Film class="iconfont" />
      <span>电影</span>
    </router-link>
    <router-link to="/cinemaPage" class="nav-item">
      <i-ep-VideoCameraFilled class="iconfont" />
      <span>影院</span>
    </router-link>
    <router-link to="/userPage" class="nav-item">
      <i-ep-User class="iconfont" />
      <span>我的</span>
    </router-link>
  </div>
</template>

<style lang="scss" scope>
.view-window {
  height: calc(100vh - 50px);
  overflow: hidden;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: #fff;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-around;
  align-items: center;
  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    &:hover span {
      color: #dd2727;
    }
    &:hover .iconfont {
      color: #dd2727;
    }
    .iconfont {
      font-size: 22px;
      color: #474747;
      }
    }
    span {
      font-size: 12px;
      color: #666;
    }
  }
</style>
